//
//  Point.h
//  L10Operator
//
//  Created by ai-nixs on 2017/10/29.
//  Copyright © 2017年 nixinsheng. All rights reserved.
//  C++模板已经过改动by:nixs 1911398892@qq.com

#ifndef __L10Operator__Point__
#define __L10Operator__Point__

#include <iostream>
using namespace std;

class Point {

private:
    int x,y;
public:
    Point(int x,int y);//自定义构造
    
    int getX();
    int getY();
    
    //add方法重载
    void add(Point p);
    void add(int x,int y);
    
    void operator+=(Point p);//重载+=运算符
};



#endif /* defined(__L10Operator__Point__) */
